<?php
session_start();
if (isset($_POST['dian']) && isset($_POST['xiao'])){
 
    $dian=addslashes(trim($_POST['dian']));
    $xiao=addslashes(trim($_POST['xiao']));
    
    setcookie("xiao", $xiao, time()+36000);
    setcookie("dian", $dian, time()+36000);
    var_dump($_COOKIE);
}
